Skip to content

stake: Minor improvements in IsTreasuryX tests.#3694

Merged
davecgh merged 1 commit into
decred:masterfrom
jholdstock:is_treasury-review
May 20, 2026
Merged

stake: Minor improvements in IsTreasuryX tests.#3694
davecgh merged 1 commit into
decred:masterfrom
jholdstock:is_treasury-review

Conversation

@jholdstock
Copy link
Copy Markdown
Member

I was late to the party reviewing these recent changes but I've taken a look anyway and here are a few minor things I noticed could be improved.

Using t.Run takes advantage of go tooling to prefix test error messages with the test name, rather than having to manually constructing the strings.

Comment thread blockchain/stake/treasury_test.go Outdated
Comment thread blockchain/stake/treasury_test.go Outdated
@jholdstock jholdstock force-pushed the is_treasury-review branch from 076048f to 8d665b8 Compare May 18, 2026 01:19
Fix a couple of comment typos in recent refactoring of the tests for
IsTAdd, IsTreasuryBase and IsTSpend funcs.
@jholdstock jholdstock force-pushed the is_treasury-review branch from 8d665b8 to 1c93fe0 Compare May 18, 2026 01:20
@davecgh davecgh added this to the 2.2.0 milestone May 18, 2026
@jholdstock
Copy link
Copy Markdown
Member Author

This PR ended up a bit thin but we can merge it like this if you are happy to.

@davecgh davecgh merged commit 5e6769d into decred:master May 20, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants